<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib tagdir="/WEB-INF/tags" prefix="my"%>
<c:set var="clv" value="${requestScope.categorieLV}" />
<div class="prodNav grid_16">
    <c:choose>
        <c:when test="${clv != null}">
            <div class="prodHeadline">
                <h3>${clv.categorie.name}</h3>
            </div>
            <my:catOrderBy page="${param.page}" id="${param.id}" sort="${param.sort}" value="${param.value}" />
        </c:when>
        <c:otherwise>
            <div class="prodHeadline">
                <h3>Categories</h3>
            </div>
            <my:catsOrderBy sort="${param.sort}" value="${param.value}" />
        </c:otherwise>
    </c:choose>
</div>
<div class="bodyContent grid_16">
    <div class="products grid_16 alpha">
        <c:choose>
            <c:when test="${clv != null}">
                <div class="prodMenu">
                    <my:jeuxVideo items="${clv.jeuxVideo}" />
                </div>
            </c:when>
            <c:otherwise>
                <c:forEach var="clv" items="${requestScope.categoriesLV}">
                    <div class="prodMenu">
                        <a href="?page=categories&amp;id=${clv.categorie.id}" title="View ${clv.totalJeuxVideo} Games for ${clv.categorie.name}" class="viewAll">${clv.categorie.name} &raquo;</a>
                        <div class="clear"></div>
                        <my:jeuxVideo items="${clv.jeuxVideo}" />
                    </div>
                </c:forEach>
            </c:otherwise>
        </c:choose>
        <my:pagination page="${param.page}" id="${param.id}" sort="${param.sort}" value="${param.value}" start="${param.start}" totalPages="${requestScope.totalPages}" />
    </div>
</div>